<?php
use yii\helpers\Html;
use kartik\form\ActiveForm;
use common\models\db\ThirdPartyPlatform;

/* @var $this yii\web\View */
/* @var $model fztadmin\modules\system\models\forms\ConfigPlatformForCompany */
/* @var $form \kartik\form\ActiveForm */
?>

<div class="config-platform-for-company-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'third_party_platform_id')->dropDownList(ThirdPartyPlatform::getAllSelMap()) ?>

    <?= $form->field($model, 'company_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'fzt_version')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'fzt_base_uri')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'fzt_company_secret_key')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'fzt_public_key')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'fzt_plat_no')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'status')->dropDownList($model->getStatusDesc()) ?>

  
	<?php if (!Yii::$app->request->isAjax){ ?>
	  	<div class="form-group">
	        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', '新建') : Yii::t('app', '更新'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
	    </div>
	<?php } ?>

    <?php ActiveForm::end(); ?>
    
</div>
